package com.yun.springbootsecurity.service;

import com.yun.springbootsecurity.mapper.UserMapper;
import com.yun.springbootsecurity.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {

    private final UserMapper userMapper;

    public UserService(UserMapper userMapper) {
        this.userMapper = userMapper;
    }

    public User selectByUserId(String username){
        return userMapper.selectByUserId(username);
    }
}
